package com.feonix.common.permission;

import com.feonix.common.util.StringUtil;

public class PermissionConfig {
	protected String name;
	protected String adapter = null;

	protected ValidModal validModal = ValidModal.NULL;

	protected WorkingModal workingModal = WorkingModal.ANNOTATION;

	public ValidModal getValidModal() {
		return this.validModal;
	}

	public void setValidModal(ValidModal validModal) {
		this.validModal = validModal;
	}

	public String getAdapter() {
		return this.adapter;
	}

	public void setAdapter(String adapter) {
		if (StringUtil.isNotEmpty(adapter))
			this.adapter = adapter;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public WorkingModal getWorkingModal() {
		return this.workingModal;
	}

	public void setWorkingModal(WorkingModal workingModal) {
		this.workingModal = workingModal;
	}
}
